package com.effectiv.req1.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import com.effectiv.req1.domain.Company;
import com.effectiv.req1.domain.User;

@Repository
public interface UserRepository extends MongoRepository<User, String>{
	
	User findByEmail(String email);
	List<User> findByCompany(Company company);
	List<User> findByCompanyAndNameLike(Company company, String name);
}
